<?php

/*****************************************************
 * File name: config.php
 * Create date: 2018/12/14
 * Description: lib自定义配置
 *****************************************************/

defined('GAME_OPENID') || define('GAME_OPENID', '__ulink_game_openid__');
defined('AUTH_OPENID') || define('AUTH_OPENID', '__ulink_auth_openid__');

defined('CURL_ERROR_NO') || define('CURL_ERROR_NO', '-1000000'); //curl 请求是错误码

define('MINIPROGRAM_LOGIN_EXPIRED', 1800); //微信小程序登录态过期时间

define('CORE_LIB_VERSION', '2.0.7');

define('LIB_DEFAULT_INSTANCEID', 155589);

define('REDIS_LIMIT_ACTID', '1138');

define('IDGENERATOR_IVTCODE_KEY1', 'ntxframework:idgenerator:ivtcode1');
define('IDGENERATOR_IVTCODE_KEY2', 'ntxframework:idgenerator:ivtcode2');

define('ULINK_PAAS_L5_SID', [
    'yxzj' => ['64069121', '184877056'],
    'cjm' => ['64069121', '230293504'],
    'default' => ['64069121', '99024896'],
]);

//定义日志错误级别，ULink本地开发才会用到，上线之后，osslib库中会优先定义
if (!defined('LP_BASE')) {
    define('LP_BASE', 1);
    define('LP_DEBUG', LP_BASE << 2);
    define('LP_INFO', LP_BASE << 3);
    define('LP_ERROR', LP_BASE << 7);
}

define(
    'TGLOG_SERVER_INFO',
    [
        'domain' => 'shanghai.gwyyx.tglog.datacenter.db',
        'port' => '31594',
    ]
);

define('REDIS_CONNECT_ERROR', 10000000);
define('PROXY_CONNECT_ERROR', 10000001);
define('PAAS_CONNECT_ERROR', 10000002);

define('WECHAT_BIND_DB_CFG', '/usr/local/commweb/cfg/CommConfig/weixin_main.cfg');
